package io.zhengsh.juc;

public class SyncDemo {

    static Object objectLock = new Object();

    public static void m1() {
        synchronized (objectLock) {
            System.out.println(Thread.currentThread().getName() + "\t ----- 获取 objectLock 成功！");
        }
    }

    public static void main(String[] args) {
        m1();
    }
}
